#pragma once

#include "ClientSettings.h"
#include "TileBag.h"

class BagManager
{
	TileBag* mBag[ClientSettings::BAG_NLINES][ClientSettings::BAG_NCOLS];
	HFONT mFont;

public:
	BagManager();
	~BagManager(void);

	void Render(HDC _surface);

	DWORD getArrayCoordsFromPoint(int _x, int _y);
	TileBag* getTileFromCoords(int _line, int _col);

	void LockTile(int _line, int _col);
	void UnlockTile(int _line, int _col);

	void PlaceLetter(UINT _line, UINT _col, char _letter);

	void Reset();
};

